<template>
  <div>
    <el-table :data="tableData">
      <el-table-column
        prop="id"
        label="id"
        width="140"
      >
      </el-table-column>
      <el-table-column
        prop="username"
        label="账号"
        width="120"
      >
      </el-table-column>
      <el-table-column
        prop="password"
        label="密码"
      >
      </el-table-column>
    </el-table>
  </div>
</template>
<script>
export default {
  data: () => ({
    tableData: []
  }),
  async created() {
    const res = await this.$http.getadminusers()
    this.tableData = res.message
    console.log(res)
  }
}
</script>
<style lang="scss" scoped>
</style>
